package com.ggb.reactive.domain.dto

import com.ggb.reactive.domain.entity.DishFlavor
import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotNull
import lombok.Data
import java.math.BigDecimal


@Data
@Schema(title="菜品信息 DishDTO")
data class DishDTO(
    @field:NotNull(message="菜品id不能为空")
    var id:Long?,
    //菜品名称
    @Schema(description = "菜品名称")
    var name:String?,
    //菜品分类id
    @Schema(description = "菜品分类id")
    var categoryId:Long?,
    //菜品价格
    @Schema(description = "菜品价格")
    var price: BigDecimal?,
    //图片
    @Schema(description = "图片")
    var image:String?,
    //描述信息
    @Schema(description = "描述信息")
    var description:String?,
    //0 停售 1 起售
    @Schema(description = "0 停售 1 起售")
    var status:Int?,
    // 口味
    @Schema(description = "口味")
    var flavors:List<DishFlavor>?
)
